package com.administration.service.impl;

import com.administration.dao.SysPostMapper;
import com.administration.pojo.SysPost;
import com.administration.service.SysPostService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("SysPostService")
public class SysPostServiceImpl implements SysPostService {

    @Resource
    private SysPostMapper sysPostMapper;

    @Override
    public List<SysPost> selectAllPost(Map<String, Object> map) {
        return sysPostMapper.selectAllPost(map);
    }

    @Override
    public int addPost(SysPost sysPost) {
        return sysPostMapper.addPost(sysPost);
    }

    @Override
    public int updatePost(SysPost sysPost) {
        return sysPostMapper.updatePost(sysPost);
    }

    @Override
    public int deletePost(SysPost sysPost) {
        return sysPostMapper.deletePost(sysPost);
    }
}
